package dongze.com.ckdj.util;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.security.MessageDigest;

import dongze.com.ckdj.CKDJApplication;


/**
 * Created by fanqwz on 2017/10/20.
 */

public class MyLog {
    public static void e(String tag, String message) {
        e(tag, message, null);
    }
    public static void e(String tag, String message, Throwable t) {
        Logger log = LoggerFactory.getLogger(tag);
        log.error(message, t);
    }

    public static void d(String tag, String message) {
        Logger log = LoggerFactory.getLogger(tag);
        log.debug(message);
    }

    public static void i(String tag, String message) {
        Logger log = LoggerFactory.getLogger(tag);
        log.info(message);
    }

    public static void v(String tag, String message) {
        Logger log = LoggerFactory.getLogger(tag);
        log.trace(message);
    }

    public static void w(String tag, String message) {
        Logger log = LoggerFactory.getLogger(tag);
        log.warn(message);
    }
}
